
import { request } from 'umi';
import type { RadarDataType, LineDataType, ApplyDataType, KnowledgeDataType } from './data';

export async function fakeRadarChartData(): Promise<{ data: RadarDataType[] }> {
    return request('/mockApi/fake_radar_chart_data');
}

export async function fakeLineChartData(): Promise<{ data: LineDataType[] }> {
    return request('/mockApi/fake_line_chart_data');
}

export async function fakeApplyListData(): Promise<{ data: ApplyDataType[] }> {
    return request('/mockApi/fake_apply_list_data');
}

export async function fakeKnowledgeListData(): Promise<{ data: KnowledgeDataType[] }> {
    return request('/mockApi/fake_knowledge_list_data');
}
